package com.hehanpeng.springbootapi.service;

import com.hehanpeng.springbootapi.domain.Book;

import java.util.List;

/**
 * @author hehanpeng
 * @date 2018/4/24 11:03
 */
public interface BookService {

    List<Book> findAllBooks();

    Book getBookById(Long id);

    Book saveBook(Book book);

    Book updateBook(Book book);

    void deleteBookById(Long id);

    void deleteAllBooks();
}
